package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-03-04
 */
public class GoodsUnit extends Model<GoodsUnit> {

    private static final long serialVersionUID = 1L;

    private String id;

    private String goodsId;

    private String unitId;

    private String code;

    private BigDecimal retailPrice;

    private BigDecimal wholesalePrice;

    private BigDecimal minPrice;

    private BigDecimal referBuyPrice;

    private Boolean base;

    private BigDecimal times;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }
    public BigDecimal getWholesalePrice() {
        return wholesalePrice;
    }

    public void setWholesalePrice(BigDecimal wholesalePrice) {
        this.wholesalePrice = wholesalePrice;
    }
    public BigDecimal getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(BigDecimal minPrice) {
        this.minPrice = minPrice;
    }
    public BigDecimal getReferBuyPrice() {
        return referBuyPrice;
    }

    public void setReferBuyPrice(BigDecimal referBuyPrice) {
        this.referBuyPrice = referBuyPrice;
    }
    public Boolean getBase() {
        return base;
    }

    public void setBase(Boolean base) {
        this.base = base;
    }
    public BigDecimal getTimes() {
        return times;
    }

    public void setTimes(BigDecimal times) {
        this.times = times;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GoodsUnit{" +
            "id=" + id +
            ", goodsId=" + goodsId +
            ", unitId=" + unitId +
            ", code=" + code +
            ", retailPrice=" + retailPrice +
            ", wholesalePrice=" + wholesalePrice +
            ", minPrice=" + minPrice +
            ", referBuyPrice=" + referBuyPrice +
            ", base=" + base +
            ", times=" + times +
            ", companyId=" + companyId +
        "}";
    }
}
